/* 整体布局 */
.user-main {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4ff 100%);
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.user-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏样式 */
.user-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.user-card {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f7ff;
    margin-bottom: 25px;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.25);
    transition: transform 0.3s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-card h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.user-card p {
    color: #666;
    font-size: 14px;
}

.user-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
}

.user-nav .nav-item:hover {
    background: #f0f7ff;
    color: #4a90e2;
    transform: translateX(5px);
}

.user-nav .nav-item.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
}

.nav-icon {
    font-size: 22px;
}

/* 主内容区样式 */
.content-main {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f7ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    color: #333;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

/* 表单样式 */
.form-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafd;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #4a90e2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    outline: none;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 按钮样式 */
.save-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

.upload-btn {
    padding: 12px 25px;
    background: #f0f7ff;
    color: #4a90e2;
    border: 2px solid #4a90e2;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

/* 预约列表样式 */
.appointment-item {
    background: #f8fafd;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.appointment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #4a90e2;
}

.appointment-info h4 {
    color: #333;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.appointment-info p {
    color: #666;
    margin: 0 0 10px;
    font-size: 15px;
}

.status-tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-tag.pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-tag.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-tag.cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.action-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff5252 0%, #ff1744 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .user-layout {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .form-section {
        grid-template-columns: 1fr;
    }

    .appointment-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.input-readonly {
    background-color: #f5f7fa !important;
    cursor: not-allowed !important;
    color: #666 !important;
    border-color: #eef2f7 !important;
}

.input-readonly:hover {
    border-color: #eef2f7 !important;
    box-shadow: none !important;
}

/* 预约记录相关样式 */
.appointments-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.appointment-item {
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.appointment-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.appointment-info {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.status-tag.pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-tag.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-tag.cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.cancel-btn {
    padding: 8px 16px;
    background: #ff5252;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: #ff1744;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 8px;
}

/* 添加筛选按钮相关样式 */
.filter-options {
    position: relative;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 35px 8px 15px;
    font-size: 14px;
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    background-color: #fff;
    color: #4a90e2;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.filter-dropdown select:hover {
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.filter-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #4a90e2;
}

/* 修改预约卡片中的头像样式 */
.therapist-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
    background-color: #f8f9fa;
    padding: 2px;
}

.therapist-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.therapist-info .info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.therapist-info h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.therapist-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-dropdown select {
        width: 100%;
    }

    .therapist-info {
        flex-direction: column;
        text-align: center;
    }

    .therapist-info img {
        margin: 0 auto;
    }
}

/* 在文件末尾添加分页组件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px 0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #4a90e2;
    background: #fff;
    color: #4a90e2;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #4a90e2;
    color: #fff;
}

.page-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.page-info {
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}